﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Test
    {

        int num1;
        int num2;
        

        public int Plus(int num1, int num2)
        {
            return num1 + num2;
        }
        public int subtract(int num1, int num2) 
        {
            return num1 - num2;
        }
        public int multiply(int num1, int num2) 
        {
            return num1 * num2;
        }
        public int divide(int num1, int num2)
        {
            return num1 / num2;
        }


        public static void Main()
        {
            Test t = new Test();

            t.num1 = 4;
            t.num2 = 2;

            Console.WriteLine("和为:" + (t.num1 + t.num2)); 
            Console.WriteLine("差为:" + (t.num1 - t.num2));    
            Console.WriteLine("积为:" + (t.num1 * t.num2));
            Console.WriteLine("商为:" + (t.num1 / t.num2));


        }
    }
    }
